using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.ComponentModel;
using System.Web;
using System.Security.Permissions;

namespace Pegasus.Web.UI
{
    /// <summary>
    /// A View class used as a child control in the CustomMultiView
    /// </summary>
    [ToolboxData( "<{0}:ViewEx runat=\"server\"></{0}:ViewEx>" ), Designer( "System.Web.UI.Design.WebControls.ViewDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" ), ParseChildren( false ), AspNetHostingPermission( SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal ), AspNetHostingPermission( SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal )]
    public class ViewEx : View
    {
        private string condition = null;

        /// <summary>
        /// The condition for which this view will be shown.
        /// </summary>
        [Bindable( true ), Category( "Behavior" ), DefaultValue( "" )]
        public string Condition
        {
            get
            {
                return condition;
            }
            set
            {
                condition = value;
            }
        }
    }
}
